package com.wolfsea.defineviewgrouppaper
import android.os.Bundle
import android.util.Log
import com.wolfsea.defineviewgrouppaper.databinding.ActivityMainBinding

class MainActivity : BaseActivity<ActivityMainBinding>(ActivityMainBinding::inflate) {

    override fun init(savedInstanceState: Bundle?) {

        mBinding.paperLl.attachPaperContainer(mBinding.paperContainer)

        mBinding.paperLl.findAnswerCallback = object : BottomLayoutView.IFindAnswerCallback {
            override fun findAnswer(answers: MutableList<String>?) {
                answers?.let {
                    for (item in it) {
                        Log.d(TAG, item)
                    }
                }
            }
        }

    }

    companion object {
        const val TAG = "MainActivity"
    }
}